package com.moxi.mogublog.commons.feign;


import com.moxi.cloudblog.base.validator.group.GetList;
import com.moxi.mogublog.commons.config.feign.FeignConfiguration;
import com.moxi.mogublog.commons.vo.college.CollegeSortVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;


/**
 * @param
 * @Description: spider端服务调用
 * @return
 * @Author: huangzx
 * @Date: 2024/7/24 下午3:54
 */


@FeignClient(name = "cloud-spider", configuration = FeignConfiguration.class)
public interface SpiderFeignClient {

    @RequestMapping(value = "/college/getBlogByUid", method = RequestMethod.GET)
    public String getBlogByUid(@RequestParam(name = "uid", required = false) String uid,
                               @RequestParam(name = "oid", required = false, defaultValue = "0") Integer oid,
                               @RequestParam(name = "ip", required = false, defaultValue = "0") String uip);


    @RequestMapping(value = "/college/getArticleByCollegeSortUid", method = RequestMethod.GET)
    public String getArticleByCollegeSortUid(@RequestParam(name = "collegeSortUid", required = false) String collegeSortUid,
                                             @RequestParam(name = "currentPage", required = false, defaultValue = "1") Long currentPage,
                                             @RequestParam(name = "pageSize", required = false, defaultValue = "10") Long pageSize);

    @RequestMapping(value = "/college/getList", method = RequestMethod.POST)
    public String getCollegeList(@RequestBody CollegeSortVO collegeSortVO);


    @RequestMapping(value = "/college/getHotList", method = RequestMethod.GET)
    public String getHotCollegeList();

    @RequestMapping(value = "/college/addClick", method = RequestMethod.GET)
    public String addClick(@RequestParam(name = "cid", required = true) String cid);

    @RequestMapping(value = "/college/getHotTopic", method = RequestMethod.GET)
    public String getHotTopic();
}
